class CreatePositions < ActiveRecord::Migration
  def self.up
    create_table :positions do |t|
      t.string :part
      t.boolean :front, :default => true
      t.boolean :rear, :default => true
      t.boolean :side, :default => true
      t.boolean :twosides, :default => true
      t.boolean :t_rv, :default => true
      t.boolean :t_wagon, :default => true
      t.boolean :t_sedan, :default => true
      t.boolean :t_minivan, :default => true
      t.boolean :size_mini, :default => true
      t.boolean :size_standard, :default => true
      t.boolean :size_large, :default => true
      t.boolean :dismantle, :default => true
      t.string :material
      t.boolean :spoiler_mini, :default => true
      t.boolean :spoiler_standard, :default => true
      t.boolean :spoiler_large, :default => true
      t.timestamps
    end
  end

  def self.down
    drop_table :positions
  end
end
